﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;
using System.IO.Ports;
using System.Windows.Controls;

namespace 功能测试软件.Model
{
    public class TestModel
    {
        /// <summary>
        /// 通道日志控件
        /// </summary>
        public RichTextBox RichTextBoxLog { get; set; }
        /// <summary>
        /// 最小通过强度
        /// </summary>
        public int dBmMin { get; set; }
        /// <summary>
        /// 继电器串口
        /// </summary>
        public SerialPort RelayPort { get; set; }
        /// <summary>
        /// 最大通过电流
        /// </summary>
        public double CurrentMax { get; set; }
        /// <summary>
        /// 通道编号
        /// </summary>
        public int ChannelNo { get; set; }
        /// <summary>
        /// 通道使能
        /// </summary>
        public bool ChannelEnable { get; set; }
        /// <summary>
        /// 通道串口号
        /// </summary>
        public string ChannelPortname { get; set; }
        /// <summary>
        /// 通道串口波特率
        /// </summary>
        public int ChannelPortBaudrate { get { return 115200; } }
        /// <summary>
        /// 通道点灯使能
        /// </summary>
        public bool ChannelRgbEnable { get; set; }
        /// <summary>
        /// 通道刷图使能
        /// </summary>
        public bool ChannelPicEnable { get; set; }
        /// <summary>
        /// 通道刷图类型
        /// </summary>
        public string ChannelPicTemp { get; set; }
        /// <summary>
        /// 通道发包等待
        /// </summary>
        public int BarDelay { get; set; }
        private SerialPort _ChannelPort = new SerialPort();
        /// <summary>
        /// 通道串口
        /// </summary>
        public SerialPort ChannelPort { get { return _ChannelPort; } set { _ChannelPort = value; } }
    }
}
